home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / HyperSimple / MPWandTHINK.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-09  |  864 b   |  42 lines  |  [TEXT/MPS ]

  1. /*
  2.  *    MPWandTHINK.h
  3.  *
  4.  *    Stupid differences in language/data type, etc.
  5.  *
  6.  *    10/30/90    wdh        created in frustration
  7.  */
  8.  
  9. #ifndef    __MPWandTHINK__
  10. #define    __MPWandTHINK__
  11.  
  12. #ifdef    THINK_C
  13.  
  14. #define        LIGHTSPEED
  15. /* C++ and ANSI declarations Mike Kahl didn't implement */
  16. /*#define        const                /* eg, const short * foo: doesn't change */
  17. #define        signed                /* as opposed to unsigned */
  18. #define        volatile            /* don't put in registers */
  19.  
  20. #define        virtual                /* C++ stuff */
  21. #undef        MPW
  22.  
  23. #else
  24.  
  25. #undef        LIGHTSPEED
  26. #define        MPW
  27. #define        AuxWinHndl    AuxWinHandle        /* MPW is wrong here */
  28. #define        AuxCtlHndl    AuxCtlHandle        /* ditto */
  29. #define        transIndex    ctFlags                /* ditto ditto */
  30. #define        TRUE    true
  31. #define        FALSE    false
  32.  
  33. #endif    THINK_C
  34.  
  35. #define    C                /* language type (for Rez/C shared include files) */
  36.  
  37. #ifndef    NIL
  38. #define    NIL    ((void *) 0)
  39. #endif    NIL
  40.  
  41. #endif    __MPWandTHINK__
  42.